package eva.savant.business.ventas.view

import eva.savant.business.global.service.QSGlobal
import eva.savant.businessobject.vt.Organizacion
import eva.savant.businessobject.gl.Sociedad

import javax.faces.bean.ManagedBean
import javax.faces.bean.SessionScoped
import javax.annotation.PostConstruct

@SessionScoped
@ManagedBean(name = 'IMOrganizacion')
public class IMOrganizacion extends Maestro {

  def lsSociedad

  @PostConstruct
  public void cleanEntity() {

    entity= new Organizacion(); init()

    entity.sociedad= new Sociedad()

    lsSociedad= getLsEntity(QSGlobal.lsSociedadAll)
  }

}
